
package ;
import bloom.remoting.EncryptedHttpConnection;


class Backend 
{

    public static function main () 
    {
        var ctx = new haxe.remoting.Context();
        ctx.addObject("backend",new BackendAPI());
        if( EncryptedHttpConnection.handleRequest(ctx, Crypt.encrypt, Crypt.decrypt) )
            return;
        // handle normal request
        php.Lib.print("This is a remoting server !");
        
    }   
}